﻿namespace PortableRiotGames.Interfaces.Champion
{
    using PortableRiotGames.Infrastructure;
    using PortableRiotGames.Infrastructure.Objects;
    using System.Collections.Generic;

    public class GetChampionRequest : RequestBase
    {
        public GetChampionRequest(string key)
            : base(key)
        {
        }

        public bool FreeToPlay { get; set; }

        protected internal override string EndpointUrl
        {
            get
            {
                return base.EndpointUrl + "v1.1/champion";
            }
        }

        protected override QueryStringDictionary GetParameterList()
        {
            var parameters = base.GetParameterList();
            parameters.Add("freeToPlay", FreeToPlay);
            return parameters;
        }

        protected internal override List<Region> SupportedRegions
        {
            get { return new List<Region>() { Region.NA, Region.EUNE, Region.EUW }; }
        }
    }
}